import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testng.keyword.TestNGBuiltinKeywords as TestNGKW
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows
import internal.GlobalVariable as GlobalVariable
import org.openqa.selenium.Keys as Keys

WebUI.openBrowser('')

WebUI.navigateToUrl('http://127.0.0.1/login?redirect=%2Findex')

WebUI.setText(findTestObject('login/Page_/input__el-input__inner'), 'admin')

WebUI.setEncryptedText(findTestObject('Object Repository/login/Page_/input__el-input__inner_1'), 'hUKwJTbofgPU9eVlw/CnDQ==')

WebUI.click(findTestObject('Object Repository/login/Page_/button_'))

WebUI.click(findTestObject('Object Repository/registerCustomer/Page_/div_'))

WebUI.click(findTestObject('Object Repository/registerCustomer/Page_/li_'))

WebUI.click(findTestObject('Object Repository/registerCustomer/Page_/div__1'))

WebUI.click(findTestObject('registerCustomer/Page_/i_plus_zhengmian'))

WebUI.click(findTestObject('registerCustomer/Page_/i_plus_fanmian'))

WebUI.setText(findTestObject('registerCustomer/Page_/input__chepaihaoma'), '鄂A88888')

WebUI.setText(findTestObject('registerCustomer/Page_/input__guachehaoma'), '挂1')

WebUI.setText(findTestObject('registerCustomer/Page_/input__lianxifangshi'), '18040542765')

WebUI.click(findTestObject('registerCustomer/Page_/div__1_2'))

